package xyc.sjxy.dao;

import xyc.sjxy.pojo.Users;

import java.sql.SQLException;
import java.util.List;

public interface UserDao {
    Users findById(Integer id) throws SQLException;
    Users findByUsername(String username) throws SQLException;
    Users findByUsername(String username, String password) throws SQLException;
    List<Users> findAll();
    int insert(Users users) throws SQLException;
    int update(Users users) throws SQLException;
     int updatePwd(Users users) throws SQLException;

     int update_pic(Users users) throws SQLException;
    int delete(Integer id);
    int delete(String username);
}
